// components/orderGoods/orderGoods.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    item: {
      type: Object,
      value: {}
    },
    goodsId: {
      type: Number,
      value: 0
    },
    avatar: {
      type: String,
      value: null
    },
    title: {
      type: String,
      value: null
    },
    amount: {
      type: Float32Array,
      value: 0
    },
    number: {
      type: Int16Array,
      value: 0
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goGoodsDetail: function (e) {
      var goodsId = e.currentTarget.dataset.goodsId
      wx.navigateTo({
        url: '/pages/mall/goodsDetail/goodsDetail?goodsId=' + goodsId,
      })
    }
  }
})
